<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			var a = Math.pow(2,10);          /*2的10次方*/
			/*var a = Math.pow(9,1/2);*/     /*9的平方根*/
			/*var a = Math.pow(8,1/3);*/     /*8的立方根*/
			console.log(a);
			
			var b = 5.567;                   /*四舍五入     6*/
			var c = Math.round(b);
			console.log(c);
			
			
			var d = 1.1112;          
			/*var e = Math.ceil(d);*/         /*向上取整*/
			var e = Math.floor(d);            /*向下取整*/
			console.log(e);
			
			var f = 12;
			var g = 13;
			var h = 14;
			/*var i =Math.max(f,g,h);*/        /*取最大值*/
			var i =Math.min(f,g,h);            /*取最小值*/
			console.log(i);
			
			
			
			var j = Math.random();   /*生成一个小于1大于0的随机数*/
			console.log(j);
			
			
			
		</script>
	</head>
	<body>
	</body>
</html>
